package com.geek.novel.fragment

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentFactory
import com.geek.novel.ui.ReadView

class BookMenuFragmentFactory(private val sectionView: ReadView): FragmentFactory() {
	
	override fun instantiate(classLoader: ClassLoader, className: String): Fragment {
		val loadFragmentClass = loadFragmentClass(classLoader, className)
		if(loadFragmentClass == FragmentReadSetting::class.java){
			return FragmentReadSetting(sectionView)
		}
		return super.instantiate(classLoader, className)
	}
	
}